package com.yeyks.common.utils.apputil.rediskey;

import java.io.Serializable;

/**
 * 缓存创建Key
 * @author Administrator
 */
public class BuilderKey implements Serializable {

    private static final long serialVersionUID = 5785876649694033155L;

    private String redisKey;

    private Object otherKey;

    public BuilderKey(){

    }
    public static String build(String redisKey, Object otherKey){
        return new StringBuilder().append(redisKey).append(otherKey).toString();
    }

    public String getRedisKey() {
        return redisKey;
    }

    public BuilderKey setRedisKey(String redisKey) {
        this.redisKey = redisKey;
        return this;
    }

    public Object getOtherKey() {
        return otherKey;
    }

    public BuilderKey setOtherKey(Object otherKey) {
        this.otherKey = otherKey;
        return this;
    }
}
